package com.cdwang.websocketmodule;

import androidx.appcompat.app.AppCompatActivity;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;

import com.cdwang.websocket_module.WebSocketUtils;
import com.cdwang.websocket_module.websocket.SendInfo;


public class MainActivity extends AppCompatActivity implements SendInfo {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        WebSocketUtils.INSTANCE.initData(this,this);
    }

    @Override
    public void sendInfo(String info) {
        Log.e("传输数据","数据"+info);
    }
}